
set(CMAKE_SYSTEM_NAME Generic)
set(ARCH elinx)

set(TOOLCHAIN_PATH "C:/eHiWaySDK/toolchain/gcc/bin")

set(CROSS_COMPILE "riscv-none-embed")

# compilers
set(CMAKE_C_COMPILER   ${TOOLCHAIN_PATH}/${CROSS_COMPILE}-gcc.exe)
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PATH}/${CROSS_COMPILE}-g++.exe)
set(CMAKE_LINKER       ${TOOLCHAIN_PATH}/${CROSS_COMPILE}-ld.exe)

set(CMAKE_C_COMPILER_WORKS   TRUE)
set(CMAKE_CXX_COMPILER_WORKS TRUE)
set(CMAKE_LINKER_WORKS TRUE)

